package com.itany.pojo;


import java.io.Serializable;

/**
 * 权限
 */
public class Permission implements Serializable {
    /**
     * 权限id
     */
   private Integer id;
    /**
     * 权限名称
     */
   private String name;
    /**
     * 父权限，若父权限id为0，代表根权限，无父权限
     */
   private Permission parentPermission;
    /**
     * 权限简介
     */
   private String sname;
    /**
     * 权限跳转url
     */
   private String url;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Permission getParentPermission() {
        return parentPermission;
    }

    public void setParentPermission(Permission parentPermission) {
        this.parentPermission = parentPermission;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return "Permission{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", parentPermission=" + parentPermission +
                ", sname='" + sname + '\'' +
                ", url='" + url + '\'' +
                '}';
    }
}
